<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProfitSharingAccountTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('profit_sharing_account', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('分帐方名称');
            $table->string('sub_appid',128)->default('')->comment('分帐方appid');
            $table->string('sub_mchid',128)->default('')->comment('分帐方sub_mchid');
            $table->string('pay_notify_url')->default('')->comment('微信支付回调地址');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('profit_sharing_account');
    }
}
